{template /common/header} 

<div class="app_body">
  <div class="app_jfzdShiJian"> 时间：
    <input type="text" id="start" name="start" readonly="readonly" class="input_2"  value="<?php echo date('Y-m-d',$start!=""?$start:time());?>"   nullmsg="请输入选择日期！"/>
    至
    <input type="text" id="end" name="end" readonly="readonly" class="input_2"  value="<?php echo date('Y-m-d',$end!=""?$end:time());?>"    nullmsg="请输入选择日期！"/>
  </div>
  <input type="button" value="查询" class="btnLan" />
</div>
<div class="app_jfzdJiLu">
  <table>
    <tr>
      <th>提现时间</th>
      <th>提现金额</th>
      <th>提现手续费</th>
      <th>提现状态</th>
      <th>处理时间</th>
      <th>备注详情</th>
    </tr>
    <?php foreach ($list["list"] as $k => $v): ?>
    <tr>
      <td>{date('Y-m-d H:i:s',$v[add_time])}</td>
      <td><span  class="casble-c1">{$v[withdraw_money]}</span></td>
      <td>{$v[withdraw_fee]}</td>
      <td><span  class="casble-c1">
        <?php if($v[withdraw_status]==0){?>
        处理中
        <?php }elseif($v[withdraw_status]==1){?>
        提现成功
        <?php }else{?>
        提现失败
        <?php }?>
        </span></td>
      <td><span  class="casble-c1">
        <?php if($v[deal_time]==0){?>
        --
        <?php }else{?>
        {date('Y-m-d H:i:s',$v[deal_time])}
        <?php }?>
        </span></td>
      <td class="casble-c2"><span>{$v[deal_info]}</span></td>
    </tr>
    <?php endforeach ?>
  </table>
</div>
<div class="pagefooter pageactivity">
  <div class="pagefooter-01 fr">{$list[page]}</div>
</div>
<?php echo jsfile('hddate');?> 
<script>
var start = {
    elem: '#start',
    format: 'YYYY-MM-DD',
    max: laydate.now(),
    istime: true,
    istoday: false,
    choose: function(datas){
         end.min = datas; //开始日选好后，重置结束日的最小日期
         end.start = datas //将结束日的初始值设定为开始日
    }
};
var end = {
    elem: '#end',
    format: 'YYYY-MM-DD',
    max: laydate.now(),
    istime: true,
    istoday: false,
    choose: function(datas){
        start.max = datas; //结束日选好后，重置开始日的最大日期
    }
};
laydate(start); 
laydate(end);
$(".btnLan").click(function(){
	window.location.href="{U('Pay/withdrawlog')}&status="+$("#status").val()+"&start="+$("#start").val()+"&end="+$("#end").val();
	//$("#search_form").submit();	
})

</script> 
{template /common/footer}